// import Vue from 'vue'
// import VueRouter from 'vue-router'
// import Home from '../page/home'
// import Item from '../page/item'

// Vue.use(VueRouter)

// const routes = [
//   { path: '/', redirect: Home },
//   { path: '/home', component: Home },
//   { path: '/item', component: Item }
// ]

// const router = new VueRouter({
//   routes
// })

// export default router
import App from '../App'

export default [{
  path: '/',
  component: App,
  children: [{
    path: '',
    component: r => require.ensure([], () => r(require('../page/home')), 'home')
  }, {
    path: '/item',
    component: r => require.ensure([], () => r(require('../page/item')), 'item')
  }, {
    path: '/score',
    component: r => require.ensure([], () => r(require('../page/score')), 'score')
  }]
}]
